/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .logo h1 {
    font-size: 28px;
    color: #e74c3c;
    margin-left: 20px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #e74c3c;
}

.navbar .nav-links li a.active {
    color: #e74c3c;
    font-weight: 600;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .navbar .logo h1 {
        text-align: center;
        margin-left: 0;
    }
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                url('images/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .slogan {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero .btn-primary:hover {
    background-color: #c0392b;
}

/* 通用部分样式 */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
}

/* 快速预览部分 */
.quick-preview {
    background-color: #fff;
    padding: 60px 20px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.preview-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.preview-card .btn-secondary {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.preview-card .btn-secondary:hover {
    background-color: #2980b9;
}

/* 热门景点样式 */
.popular-spots {
    padding: 80px 20px;
    background-color: #fff;
}

.spots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.spot-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spot-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.spot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spot-card:hover .spot-img img {
    transform: scale(1.1);
}

.like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.icon-like {
    color: #e74c3c;
    font-size: 18px;
}

.spot-info {
    padding: 25px;
}

.spot-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.location {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #f39c12;
    font-size: 20px;
}

.rating-score {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.description {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.spot-info .btn-secondary {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.spot-info .btn-secondary:hover {
    background-color: #2980b9;
}

/* 评价页面样式 */
.reviews-section {
    padding: 80px 20px;
    background-color: #fff;
}

.reviews-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background-color: #ecf0f1;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #e74c3c;
    color: white;
}

.tab-btn:hover:not(.active) {
    background-color: #bdc3c7;
}

.spot-anchors {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.anchor-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.anchor-link:hover {
    background-color: #ebf5fb;
    color: #2980b9;
}

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
}

.spot-reviews {
    margin-bottom: 60px;
}

.spot-review-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.review-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.user-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.review-rating {
    color: #f39c12;
    font-size: 20px;
    margin-left: auto;
}

.review-spot {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 15px;
}

.review-content {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background-color: #ecf0f1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.tag.recommended {
    background-color: #d4edda;
    color: #155724;
}

.tag.not-recommended {
    background-color: #f8d7da;
    color: #721c24;
}

.review-actions {
    display: flex;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #3498db;
}

/* 数据统计页面样式 */
.statistics-section {
    padding: 80px 20px;
    background-color: #fff;
}

/* 紧凑版样式 */
.statistics-section.compact {
    padding: 30px 15px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.charts-container.compact {
    gap: 15px;
    margin-bottom: 20px;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
}

.chart-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.chart-box.compact {
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-box h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.chart-box.compact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: none;
}

#visitsChart, #satisfactionChart {
    max-width: 100%;
    height: 300px;
}

.compact #visitsChart, .compact #satisfactionChart {
    height: 180px;
}

.statistics-details {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.statistics-details.compact {
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.statistics-details h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.statistics-details.compact h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.transport-rating-table {
    overflow-x: auto;
}

.transport-rating-table table {
    width: 100%;
    border-collapse: collapse;
}

.transport-rating-table th, .transport-rating-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.transport-rating-table.compact th, 
.transport-rating-table.compact td {
    padding: 8px 5px;
    font-size: 13px;
}

/* 移除图表的标题，避免重复显示 */
.compact .chart-title {
    display: none;
}

.transport-rating-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.transport-rating-table tr:hover {
    background-color: #f8f9fa;
}

/* 服务指南页面样式 */
.services-section {
    padding: 80px 20px;
    background-color: #fff;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.service-details h4 {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 15px;
}

.service-details ul {
    list-style: none;
    padding-left: 20px;
}

.service-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.service-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 20px;
    line-height: 1;
}

/* 视频展示部分 */
.video-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* 投票区域 */
.poll-section {
    padding: 80px 20px;
    background-color: #fff;
}

.poll-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.poll-question {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poll-option {
    position: relative;
}

.poll-option label {
    display: block;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.poll-option label:hover {
    background-color: #ecf0f1;
}

.poll-option input[type="radio"] {
    display: none;
}

.poll-option input[type="radio"]:checked + label {
    background-color: #e74c3c;
    color: white;
}

.poll-progress {
    margin-top: 40px;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    border-radius: 10px;
    transition: width 1s ease;
}

.poll-vote-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.poll-vote-btn:hover {
    background-color: #2980b9;
}

/* 广告区域 */
.ad-section {
    padding: 60px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/ad-bg.jpg') center/cover no-repeat fixed;
    color: white;
    text-align: center;
}

.ad-content {
    max-width: 800px;
    margin: 0 auto;
}

.ad-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.ad-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ad-btn {
    background-color: #e74c3c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ad-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-info p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .hero .slogan {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero .slogan {
        font-size: 16px;
    }
    
    .reviews-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-rating {
        margin-left: 0;
    }
    
    .service-details ul {
        padding-left: 10px;
    }
    
    .service-details li {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero .slogan {
        font-size: 14px;
    }
    
    .poll-container {
        padding: 20px;
    }
    
    .poll-question {
        font-size: 20px;
    }
    
    .ad-content h3 {
        font-size: 24px;
    }
    
    .ad-content p {
        font-size: 16px;
    }
    
    .ad-btn {
        padding: 12px 30px;
        font-size: 18px;
    }
    
    .footer-content {
        gap: 20px;
    }
}